Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encode id because sonos doesn't seem to like some special characters in the id #173

Merged
merged 1 commit into from
Dec 31, 2021

Conversation

s1037989
Copy link
Contributor

@s1037989 s1037989 commented Dec 30, 2021

This PR allows for viewing a listing of On this device localMusic even when the files in the local music folder contain special characters that sonos doesn't seem to appreciate. Furthermore, it is able to play these files that contain special characters in the filename.

According to the Sonos documentation for getMetadata, the id is simply a type string(128), but for whatever reason, at least & is not an acceptable character in the id for Sonos. By eliminating the special characters using encodeURIComponent, Sonos is able to list and play the localMusic.

Resolves #172

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

localMusic files with & in filename
2 participants